package com.fz.test;

import java.util.ArrayList;
import java.util.List;

import com.ab.activity.BaseActivity;
import com.fz.Adapter.Horadapter;

import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ListView;

public class FourActivity extends BaseActivity {
	private ListView list;
	private List<String> data;
	private Horadapter adapter;

	@SuppressWarnings("unchecked")
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_four);
		list=(ListView) findViewById(R.id.list);
		adapter=new Horadapter(this);
		data=new ArrayList<String>();
		data.add("s");
		data.add("s1");
		data.add("s2");
		data.add("s3");
		data.add("s4");
		data.add("s5");
		data.add("s6");
		data.add("s7");
		data.add("s8");
		data.add("s9");
		adapter.AddData(data);
		list.setAdapter(adapter);
	}

}
